
	
/****** Object:  Stored Procedure [dbo].UsersInsert    Script Date: Monday, July 27, 2009 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spUsersInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[spUsersInsert]
GO

			
	
	

/******************************************************************************
**		File: 
**		Name: [dbo].spUsersInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 7/27/2009 4:18:21 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].spUsersInsert
	@Email nvarchar(50),
	@Cash int,
	@CreationDate datetime,
	@LastLogin datetime,
	@UserId int output
AS

INSERT INTO [dbo].[Users] 
(
	[Email],
	[Cash],
	[CreationDate],
	[LastLogin]
) 
VALUES 
(
	@Email,
	@Cash,
	@CreationDate,
	@LastLogin
)

SELECT @UserId = @@IDENTITY

GO
	

